namespace CaltechSoft.Service.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class addProcedureAndTechToWO1 : DbMigration
    {
        public override void Up()
        {
            RenameColumn(table: "dbo.WorkOrders", name: "TechicianId", newName: "TechnicianId");
            RenameIndex(table: "dbo.WorkOrders", name: "IX_TechicianId", newName: "IX_TechnicianId");
            AddColumn("dbo.WorkOrders", "Procedure", c => c.String());
            DropColumn("dbo.WorkOrders", "Procudure");
        }
        
        public override void Down()
        {
            AddColumn("dbo.WorkOrders", "Procudure", c => c.String());
            DropColumn("dbo.WorkOrders", "Procedure");
            RenameIndex(table: "dbo.WorkOrders", name: "IX_TechnicianId", newName: "IX_TechicianId");
            RenameColumn(table: "dbo.WorkOrders", name: "TechnicianId", newName: "TechicianId");
        }
    }
}
